package com.stedu.mapper;

import com.stedu.bean.Owner;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface OwnerMapper {
    int insert(Owner o);
    //根据ID删除
    int delete(Integer oid);
    //根据ID修改
    int update(Owner o);
    //查询所有业主
    List<Owner> selectAll();
    //根据业主姓名查询
    List<Owner> selectByOname(@Param("oname") String oname,@Param("ophone")String ophone);
    //根据ID查询
    Owner selectByOid(Integer Oid);
    int insertBatch(List<Owner> owners);
}
